package Day21.面向对象测试;

public class SingletonTest {
    public static void main(String[] args) {
        for(int i=0;i<10;i++){
            new Thread(new Runnable() {
                @Override
                public void run() {
                    for(int i=0;i<100;i++){
                        Singleton singleton = Singleton.getInstance();
                        System.out.println(singleton);
                    }
                }
            }).start();
        }





    }
}
